package com.zt.ztrob.utils;

import java.io.UnsupportedEncodingException;


public class UrlEncode {
	private final static String ENCODE = "GBK"; 
	
	public static String getURLEncoder(String str) {
        String result = "";
        if (null == str) {
            return "";
        }
        try {
            result = java.net.URLEncoder.encode(str, ENCODE);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return result;
    }
}
